package orderoid.singleton;

import orderoid.soap.classeCommune.Commande;

public class SingletonCommande
{

	private static SingletonCommande	instance;
	private Commande					commande;

	private SingletonCommande()
	{
		commande = new Commande();
	}

	public static SingletonCommande getInstance()
	{
		if (instance == null)
		{
			instance = new SingletonCommande();
		}

		return instance;
	}

	public Commande getCommande()
	{
		return commande;
	}

	public void setCommande(Commande commande)
	{
		this.commande = commande;
	}

	public void clearSingletonCommande()
	{
		if (commande != null)
		{
			commande = null;
		}
		commande = new Commande();
	}
}
